-- GENERATED SPELL FOR [Silithid Creeper Egg] --


function spell0_5781(pUnit, Event) --@Summon Silithid Grub,Self--
pUnit:FullCastSpellOnTarget(6588,pUnit)
pUnit:RegisterEvent('Sorts_5781', 596, 1)
end

function Sorts_5781(pUnit, Event)
local choix_sorts_5781 = math.random(0, 0)
if choix_sorts_5781 == 0 then
pUnit:RegisterEvent('spell0_5781', 1, 1)
end
end

function mob5781_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5781', math.random(1500, 3000), 1)
end

function mob5781_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5781_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5781_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5781, 1, 'mob5781_Action')
RegisterUnitEvent(5781, 2, 'mob5781_Leave')
RegisterUnitEvent(5781, 3, 'mob5781_Kill')
RegisterUnitEvent(5781, 4, 'mob5781_Die')
